﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class PackController : MonoBehaviour
{


//     public PackProxy packProxy;
//     public GoodProxy goodProxy;

    public PackView packView;

    public void Awake()
    {
      //  packProxy = new PackProxy();
      //  goodProxy = new GoodProxy();
    }

    public void ShowPackUI()
    {
        List<PackModel> modelList = PackProxy.GetIntance().GetModelList();
/*        Debug.LogError("+++ modelList.Count========" + modelList.Count);*/
//         foreach (var item in modelList)
//         {
//             item.Good = PackProxy.GetIntance().GetModelByID(item.GoodID);
//             Debug.LogError("============" + item.GoodID + "++" + item.count) ;
//         }

        packView.RenderViewToModel(modelList);
    }

}
